package fafu.edu.wcy.springdemo.service.impl;

import fafu.edu.wcy.springdemo.dao.ICustomerMessageDao;
import fafu.edu.wcy.springdemo.entity.CustomerMessage;
import fafu.edu.wcy.springdemo.entity.FileStore;
import fafu.edu.wcy.springdemo.service.ICustomerMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerMessageService implements ICustomerMessageService {

    @Autowired
    ICustomerMessageDao customerMessageDao;

    @Override
    public List<CustomerMessage> findCustomerMessageAll() {
        return customerMessageDao.findCustomerMessageAll();
    }

    @Override
    public List<CustomerMessage> findCustomerMessage(CustomerMessage customerMessage) {
        return customerMessageDao.findCustomerMessage(customerMessage);
    }

    @Override
    public Integer saveCustomerMessage(CustomerMessage customerMessage){
        return customerMessageDao.saveCustomerMessage(customerMessage);
    }

    @Override
    public Integer updateCustomerMessage(CustomerMessage customerMessage) {
        return customerMessageDao.updateCustomerMessage(customerMessage);
    }

    @Override
    public List<FileStore> findFileStore(FileStore fileStore) {
        return customerMessageDao.findFileStore(fileStore);
    }


    @Override
    public Integer saveFileStore(FileStore fileStore) {
        return customerMessageDao.saveFileStore(fileStore);
    }


}
